package one.stand.mapper;

import com.jmp.base.dto.OrderCountVo;
import one.stand.model.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author cjr
 */
public interface OrdersMapperExt extends OrdersMapperBaseExt {
    int updateSend(@Param("orderId") Integer orderId, @Param("orderState") Integer orderState,
                   @Param("deliveryCompany") String deliveryCompany, @Param("deliveryNo") String deliveryNo, @Param("updateOrderState") Integer updateOrderState);

    int updateRefund(@Param("orderId") Integer orderId, @Param("refundState") Integer refundState, @Param("refundRemark") String refundRemark,
                     @Param("orderSates") String orderSates, @Param("refundStateLimit") Integer refundStateLimit);

    int updateState(@Param("orderId") Integer orderId, @Param("state") Integer state, @Param("inStates") String inStates);

    List<Orders> selectList(@Param("userId") Integer userId, @Param("companyId") Integer companyId, @Param("status") Integer status, @Param("keyword") String keyword, @Param("createTimes") String createTimes);

    List<Integer> selectTimeout(@Param("payLimitDate") Date payLimitDate);

    List<OrderCountVo.StateVo> getOrderListCount(@Param("userId") Integer userId);
}
